//
//  fixCornerBorder.m
//  CommationApp
//
//  Created by 江伟 on 2018/9/20.
//  Copyright © 2018年 iOS开发1. All rights reserved.
//

#import "FixLayerCornerBorder.h"
#import <objc/runtime.h>

@implementation UIView (fixCornerBorder)

- (void)setFixCorner:(float)fixCorner {
    if (fixCorner > 0) {
        self.layer.masksToBounds = YES;
        self.layer.cornerRadius = aufont(fixCorner);
    }
}

- (float)fixCorner {
    return aufont(self.fixCorner);
}

- (void)setFixBorderColor:(UIColor *)fixBorderColor {
    if (fixBorderColor != nil) {
        self.layer.masksToBounds = YES;
        self.layer.borderColor = fixBorderColor.CGColor;
    }
}

- (UIColor *)fixBorderColor {
    return self.fixBorderColor;
}

- (void)setFixBorderWidth:(float)fixBorderWidth {
    if (fixBorderWidth > 0) {
        self.layer.masksToBounds = YES;
        self.layer.borderWidth = fixBorderWidth;
    }
}

- (float)fixBorderWidth {
    return self.fixBorderWidth;
}

- (void)setIsAdapter:(BOOL)isAdapter {
    
}

@end
